<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <title>归属-学历-岗位统计</title>
  <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
  <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

  <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
  <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

  <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
  <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
  <!--    error-->
  <div th:if="${error}" class="alert alert-danger" role="alert">
    <strong>错误!</strong><span th:text="${errorMsg}"></span>
  </div>
  <h1 th:if="${changCi}" th:text="${changCi.name}"></h1>
  <h2>归属-学历-岗位统计</h2>
  <!--  工具栏-->
  <div class="row">
    <div class="col-md-6">
      统计时间：<span th:if="${sTime}" th:text="${#temporals.format(sTime, 'yyyy-MM-dd HH:mm')}"></span>
    </div>
    <div class="col-md-6 text-right">
      <a th:href="@{/job/statistics/region-degree/reset(changCiId=${changCi.id})}" class="btn btn-success">重新统计</a>
      <a th:href="@{/job/list(changCiId=${changCi.id})}" class="btn btn-default">返回岗位列表</a>
    </div>
  </div>
  <table class="table table-bordered">
    <thead>
    <tr class="text-center">
      <th class="text-center">序号</th>
      <th class="text-center">归属</th>
      <th class="text-center">本科岗位</th>
      <th class="text-center">研究生岗位</th>
      <th class="text-center">岗位合计</th>
    </tr>
    </thead>
    <tbody>
    <tr th:if="${rdjsList}" th:each="item,index : ${rdjsList}">
      <td class="text-center" th:text="${index.count}"></td>
      <td class="text-center" th:text="${item.region}"></td>
      <td class="text-center" th:text="${item.undergraduateJobCount}"></td>
      <td class="text-center" th:text="${item.postgraduateJobCount}"></td>
      <td class="text-center" th:text="${item.totalJobCount}"></td>
    </tr>
    </tbody>
    <tfoot>
    <tr class="text-center" th:if="${rdjsList}">
      <td style="color: #d9534f" colspan="2">合计</td>
      <td style="color: #d9534f" th:text="${undergraduateSum}"></td>
      <td style="color: #d9534f" th:text="${postgraduateSum}"></td>
      <td style="color: #d9534f" th:text="${totalSum}"></td>
    </tr>
    </tfoot>
  </table>

</div>

</body>
</html>